package com.cnfangmao.masterdata.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cnfangmao.masterdata.dto.BasicDataFieldMetadataSearchDto;
import com.cnfangmao.masterdata.dto.GeneralSearchDto;
import com.cnfangmao.masterdata.model.BasicDataFieldMetadata;

/**
 * <p>
 * 字段元数据表 服务类
 * </p>
 *
 * @author chenxd
 * @since 2020-04-14
 */
public interface BasicDataFieldMetadataService extends IService<BasicDataFieldMetadata> {
	
	BasicDataFieldMetadata findByFieldMetadataCode(String fieldCode);

	BasicDataFieldMetadata findByFieldMetadataName(String fieldName);

	IPage<BasicDataFieldMetadata> queryListBasicDataFieldMetadata(GeneralSearchDto<BasicDataFieldMetadataSearchDto> dto);
	
	List<BasicDataFieldMetadata> findByFieldMetadataId(String metadataId);
	
	boolean checkField(String userId,String metadataId,Map<String, Object> rowData);

}
